package com.spm.utils;

import com.spm.dao.CourseForCjwMapper;
import com.spm.pojo.CourseForCjw;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public class CFWMapperUtil extends MybatisUtils{
    private CourseForCjwMapper mapper;
    public CFWMapperUtil() {
        mapper = getSqlSession().getMapper(CourseForCjwMapper.class);
    }


    //查询所有课程
    public List<CourseForCjw> selectAllCourseForCjw(){
        return this.mapper.selectAllCourseForCjw();
    }

//    int insertCourse(CourseForCjw course){
//        return mapper.insertCourse(course);
//    }
    //通过Sid查询该sid已选的所有课程
    public List<CourseForCjw> selectCourseForCjwListBySid(String sid){
        return this.mapper.selectCourseForCjwListBySid(sid);
    }


}
